package com.example.tse.rbhttpservice.service.member.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


//import com.rbyair.services.member.model.MemberHistoryGetList;
/**
 * 获取当前用户浏览商品历史纪录
 * @author wliu
 * edit tse
 */
public class MemberHistoryGetListResponse extends RudderResponse{
    
    private List<MemberHistoryGetList> getList = new ArrayList<MemberHistoryGetList>();
		
	
    /**
     * @return getList
     */	
    public List<MemberHistoryGetList> getGetList() { 
	    return this.getList;
    };
	
	/**
     * @return getList
     */	
    public void setGetList(List<MemberHistoryGetList> getList) { 
        this.getList = getList;
    };
    
	
        
    private static void filterFor(MemberHistoryGetList member) {
        if (member.getGoodsId() == null) {
            member.setGoodsId("");
        }
        if (member.getName() == null) {
            member.setName("");
        }
        if (member.getPrice() == null) {
            member.setPrice("");
        }
        if (member.getMktprice() == null) {
            member.setMktprice("");
        }
        if (member.getThumbnailPic() == null) {
            member.setThumbnailPic("");
        }
        if (member.getBn() == null) {
            member.setBn("");
        }
        if (member.getIsFinished() == null) {
            member.setIsFinished("");
        }
    }
        
    public static void filter(MemberHistoryGetListResponse member) {
        if (member.getGetList() == null) {
            member.setGetList(new ArrayList<MemberHistoryGetList>());
        } else {
            for (MemberHistoryGetList item : member.getGetList()) {
                filterFor(item);
            }
        }
    }
}
